.class Lcom/waiqin365/lightapp/visit/u;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/compons/view/d;


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/CustomFormActivity;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    iput-object p2, p0, Lcom/waiqin365/lightapp/visit/u;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->b(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->c(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const/16 v3, 0x5f

    invoke-virtual {v0, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    add-int/lit8 v3, v3, 0x1

    invoke-virtual {v0, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x0

    invoke-static {v0, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->d(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v3, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/u;->a:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->a(Lcom/waiqin365/lightapp/visit/CustomFormActivity;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->b(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v0}, Lcom/waiqin365/base/db/seniorvisitcache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/seniorvisitcache/f;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->e(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    const/4 v3, 0x6

    invoke-virtual {v2, v3}, Ljava/util/Calendar;->get(I)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/db/seniorvisitcache/f;->c(Ljava/lang/String;Ljava/lang/String;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->f(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->c(Lcom/waiqin365/lightapp/visit/CustomFormActivity;)Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/u;->b:Lcom/waiqin365/lightapp/visit/CustomFormActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/u;->a:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/CustomFormActivity;->a(Lcom/waiqin365/lightapp/visit/CustomFormActivity;Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0064
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
